{{include "home/header.html"}}
<main>
    <p class="weizhi">您现在的位置是：<a href="/">首页</a>&nbsp;><a href="/list/{{.cateinfo.Id}}">{{.cateinfo.Catname}}</a>
    <div class="time_list">
        <ul>
            {{range $k,$v := .newslist}}
                <li><span>{{$v.CreateTime.Format "Y-m-d"}}</span><a href="/show/{{$v.Id}}" >{{$v.Title}}</a></li>
            {{end}}
        </ul>
    </div>
    <div class="pagelist">
        <a title="Total record">&nbsp;
            <b>{{.page.Total}}</b>
        </a>
        {{if ne .page.PreviousPage .page.PageNum}}
            <a href="/list/{{$.cateinfo.Id}}/{{.page.PreviousPage}}">上一页</a>
        {{end}}
        {{range $k,$v:= .page.Pages}}
            {{if eq $v $.page.PageNum}}
                <b>{{$v}}</b>
            {{else}}
                <a href="/list/{{$.cateinfo.Id}}/{{$v}}">{{$v}}</a>
            {{end}}
        {{end}}
        {{if .page.Total}}
            {{if ne .page.NextPage .page.PageNum}}
                <a href="/list/{{$.cateinfo.Id}}/{{.page.NextPage}}">下一页</a>
            {{end}}
            <a href="/list/{{$.cateinfo.Id}}/{{.page.PageCount}}">尾页</a>
        {{end}}
    </div>
</main>
{{include "home/footer.html"}}
